<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="com.i18n.utils.MessageUtils" %><%--
  Created by IntelliJ IDEA.
  User: WuLiangHang
  Date: 2021/3/22
  Time: 14:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
</head>
<body>
<%--这种方式称为硬编码--%>
<h1><%=MessageUtils.getText("msg.login")%></h1>
<a href='<c:url value="/i18n/login.jsp?request_locale=zh_CN"/>'>点击切换为中文</a><br/>
<a href='<c:url value="/i18n/login.jsp?request_locale=en_US"/>'>Click here to switch English</a><br/>
<form action="<c:url value="/i18n/index.jsp"/>" method="get">
    <%=MessageUtils.getText("msg.username")%>：<input type="text" name="username"/><br/>
    <%=MessageUtils.getText("msg.password")%>：<input type="password" name="password"/><br/>
    <input type="submit" value="<%=MessageUtils.getText("msg.login")%>"/>
</form>
</body>
</html>
